package com.chuyu.cy.entity.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 周小白
 * @TableName temporary_needs
 */
@TableName(value ="temporary_needs")
@Data
public class TemporaryNeeds implements Serializable {

    @Schema(description = "需求id")
    private Integer id;

    @Schema(description = "需求种类id")
    private Integer kindId;

    @Schema(description = "发布者id")
    private Integer createBy;

    @Schema(description = "需求标题")
    private String title;

    @Schema(description = "需求创建时间")
    private LocalDateTime createTime;

    @Schema(description = "需求截止时间")
    private LocalDateTime limitTime;

    @Schema(description = "需求更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "联系方式")
    private String contact;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "价格")
    private String price;

    @Schema(description = "需求描述")
    private String description;

    @Schema(description = "需求是否匹配")
    private Integer isMatched;

    @Schema(description = "匹配者id")
    private Integer matcherId;

    @Schema(description = "匹配时间")
    private LocalDateTime matchTime;

    @Schema(description = "发布者评分")
    private Integer publisherEvaluation;

    @Schema(description = "发布者评分时间")
    private LocalDateTime publisherEvaluationTime;

    @Schema(description = "匹配者评分")
    private Integer matcherEvaluation;

    @Schema(description = "匹配者评分时间")
    private LocalDateTime matcherEvaluationTime;

    @Schema(description = "是否删除")
    @TableLogic
    private Integer isDelete;

    private static final long serialVersionUID = 1L;
}